#!/bin/python3

import math
import os
import random
import re
import sys

#
# Complete the 'plusMinus' function below.
#
# The function accepts INTEGER_ARRAY arr as parameter.
#

def plusMinus(arr):
    # Write your code here
    # 分别统计数组中大于等于小于0的元素的个数，并计算占比，取6位小数
    a, b, c = 0, 0, 0
    for i in arr:
        if i > 0:
            a += 1
        elif i < 0:
            b += 1
        else:
            c += 1
    print('%.6f'%(a/n))
    print('%.6f'%(b/n))
    print('%.6f'%(c/n))

if __name__ == '__main__':
    n = int(input().strip())

    arr = list(map(int, input().rstrip().split()))

    plusMinus(arr)
